package com.example.mylibrary;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Path;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.EditText;
import android.widget.ImageView;

@SuppressLint("AppCompatCustomView")
public class MyImageView extends ImageView {
    String textLeft;
    private float width, height;

    @SuppressLint("NewApi")
    public MyImageView(Context context) {
        super(context);
    }

    @SuppressLint("NewApi")
    public MyImageView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
        super.onLayout(changed, left, top, right, bottom);
        width = getWidth();
        height = getHeight();
    }



    @SuppressLint("NewApi")
    public MyImageView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        TypedArray ta = context.obtainStyledAttributes(attrs, R.styleable.MyBorder);
        textLeft = ta.getString(R.styleable.MyBorder_border);
        setBackground(getResources().getDrawable(R.drawable.opacity_big_border));
    }

}
